package ch5.ext;

public class Person {
	private String name;
	private int age;
	private final String sex;

	public Person(String name, int age, String sex) {

		this.name = name;
		this.age = age;
		this.sex = sex;
	}

	public Person(String name, String sex) {

		this.name = name;
		this.sex = sex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

	public String getSex() {
		return sex;
	}

	// public void setSex(String s) {
	// this.sex = s;
	// }
	public static void main(String[] args) {
		Person p = new Person("老吴", "男");
		System.out.println(p.getName() + "," + p.getSex());
		final int i = 66;
		// i = 99;
		System.out.println(i);
		final Person p2 = new Person("老张", "女");
		// p2 = new Person("老刘", "男");
		// static final
	}
}
